Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support profiler in occ commands #46169

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Jun 27, 2024

Summary

Enable the profiler for occ commands as well.
When profiler is enabled and debug is on, profiles for ran occ commands will also appear in the profiles list.
The Method is set to "occ" instead of an HTTP method and the URL field contains the command with its parameters instead.

Also fixed a problem in event logging about an application load event which was started twice with slightly different id and ended only once.

Checklist

This fixes profiler event graph by removing an event start which had no
 matching end() call.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Commands will appear in available profiles after the command ran.
Method is set to "occ" and URL to the command line with parameters.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added 3. to review Waiting for reviews feature: occ feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) labels Jun 27, 2024
@come-nc come-nc added this to the Nextcloud 30 milestone Jun 27, 2024
@come-nc come-nc self-assigned this Jun 27, 2024
@come-nc come-nc changed the title Enh/support profiler in occ Support profiler in occ commands Jun 27, 2024
@come-nc come-nc requested review from a team, ArtificialOwl, yemkareems, sorbaugh, icewind1991, Altahrim and artonge and removed request for a team June 27, 2024 10:31
@icewind1991 icewind1991 merged commit 55f3e53 into master Jul 1, 2024
165 checks passed
@icewind1991 icewind1991 deleted the enh/support-profiler-in-occ branch July 1, 2024 20:45
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: occ feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants